package com.itcast.demoone.bean

data class BaseResponse<T>(
    val code: Int,
    val data: T,
    val message: String
)

// 1. 频道
data class Channel(
    val id: Int,
    val name: String
)

data class ChannelData(
    val channels: List<Channel>
)

typealias ChannelResponse = BaseResponse<ChannelData>

// 2. 登录
data class LoginRequest(
    val username: String,
    val password: String
)

data class LoginData(
    val token: String
)

typealias LoginResponse = BaseResponse<LoginData>
